//
//  LQViewController.m
//  Our Big Demo
//
//  Created by 张立强 on 16/3/24.
//  Copyright © 2016年 WJP. All rights reserved.
//

#import "LQViewController.h"
#import "LoginViewController.h"
@interface LQViewController ()
@property (weak, nonatomic) IBOutlet UIView *imageView;
@property (nonatomic,assign) BOOL LoginBool;
@end

@implementation LQViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.imageView.layer.cornerRadius = self.view.frame.size.width*0.135;
    self.LoginBool = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
//登陆
- (IBAction)LogginButton:(UIButton *)sender {
    if (self.LoginBool == NO) {
        LoginViewController *loginVC = [LoginViewController new];
        [self.navigationController pushViewController:loginVC animated:YES];
    }else{
        NSLog(@"已经登录成功了");
        
    }
}
//频道
- (IBAction)ChannelButton:(UIButton *)sender {
}
//消息
- (IBAction)VolumeButton:(UIButton *)sender {
    if (self.LoginBool == NO) {
        LoginViewController *loginVC = [LoginViewController new];
        [self.navigationController pushViewController:loginVC animated:YES];
    }else{
        NSLog(@"已经登录成功了");
        
    }
}
//设置
- (IBAction)SetButton:(UIButton *)sender {
}
//我的订阅
- (IBAction)SubscriptionButton:(UIButton *)sender {
    if (self.LoginBool == NO) {
        LoginViewController *loginVC = [LoginViewController new];
        [self.navigationController pushViewController:loginVC animated:YES];
    }else{
        NSLog(@"已经登录成功了");
        
    }
}
//我的缓存
- (IBAction)MyCacheButton:(UIButton *)sender {
}
//我喜欢的
- (IBAction)MyLoveButton:(UIButton *)sender {
    if (self.LoginBool == NO) {
        LoginViewController *loginVC = [LoginViewController new];
        [self.navigationController pushViewController:loginVC animated:YES];
    }else{
        NSLog(@"已经登录成功了");
        
    }
}


//首页
- (IBAction)homePageButton:(UIButton *)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = YES;
}
- (void)viewWillDisappear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = NO;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
